﻿// Decompiled by AS3 Sorcerer 6.12
// www.as3sorcerer.com

//Node

package 
{
    import flash.display.Sprite;
    import flash.events.Event;

    public class Node extends Sprite 
    {

        protected var _SafeStr_32:Number = 0;
        protected var _SafeStr_33:Number = 0;
        protected var _SafeStr_96:Array = null;

        public function Node(baseRadius:Number, baseAngle:int)
        {
            this._SafeStr_33 = baseRadius;
            this._SafeStr_32 = ((baseAngle * Math.PI) / 180);
            this._SafeStr_96 = new Array();
            mouseEnabled = false;
            mouseChildren = false;
            addEventListener(Event.ENTER_FRAME, this.onEnterFrame);
        }

        protected function _SafeStr_34(radius:Number):void
        {
            var child:NodeChild;
            var i:int;
            while (i < this._SafeStr_96.length)
            {
                child = this._SafeStr_96[i];
                child.node.setBaseRadius((radius + child.baseRadiusOffset));
                i++;
            };
        }

        protected function onEnterFrame(event:Event):void
        {
        }

        public function destruct():void
        {
            var child:NodeChild;
            removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
            graphics.clear();
            while (this._SafeStr_96.length > 0)
            {
                child = this._SafeStr_96.pop();
                removeChild(child.node);
                child.node.destruct();
                child = null;
            };
        }

        public function setBaseRadius(radius:Number):void
        {
            this._SafeStr_33 = radius;
        }

        public function addChildNode(node:Node, baseRadiusOffset:int=0):void
        {
            this._SafeStr_96.push(new NodeChild(node, baseRadiusOffset));
            addChild(node);
        }


    }
}//package 

class NodeChild 
{

    public var node:Node;
    public var baseRadiusOffset:int;

    public function NodeChild(node:Node, baseRadiusOffset:int)
    {
        this.node = node;
        this.baseRadiusOffset = baseRadiusOffset;
    }

}


// _SafeStr_32 = "_-CB" (String#5234, DoABC#2)
// _SafeStr_33 = "_-0A" (String#4663, DoABC#2)
// _SafeStr_34 = "_-Z" (String#5283, DoABC#2)
// _SafeStr_96 = "_-8v" (String#5077, DoABC#2)


